package com.pioneer.web.stock.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pioneer.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * StoOnhand 现存量表
 *
 * @author hlm
 * @date 2025-04-16 15:03:06
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sto_onhand")
@Data
public class StoOnhand extends BaseEntity {

    /**
     * 现存量ID
     */
    @TableId(type = IdType.AUTO)
    private Long onhandId;

    /**
     * 仓库ID
     */
    private Long storeId;

    /**
     * 存货ID
     */
    private Long inventoryId;

    /**
     * 现存量
     */
    private BigDecimal onhandNumber;

    /**
     * 冻结量
     */
    private BigDecimal freezeNumber;
}
